package xian.woniuxy.h_static.c;

class Foo {
    private int id;
    private  String name;

    public void f1() {  // 隐式参数： this
        System.out.println(this.id);
        System.out.println(this.name);
    }

    public static void f2() {
        // cant' compile
//        System.out.println(this.id);
//        System.out.println(this.name);

        System.out.println("Foo.f2");
    }

}

public class App {
    public static void main(String[] args) {
        Foo foo = new Foo();
        Foo foo2 = new Foo();
        foo.f1();
        foo2.f1();

        Foo.f2();

    }
}
